package com.atguigu.gulimall.order.to;

import com.atguigu.gulimall.order.entity.OrderEntity;
import com.atguigu.gulimall.order.entity.OrderItemEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Classname OrderCreateTo
 * @Description 创建订单需要的实体类
 * @Date 2021/10/16 20:52
 * @Author Anonymous
 */
@Data
public class OrderCreateTo {

    private OrderEntity order;

    private List<OrderItemEntity> orderItems;

    /**
     * 订单计算的应付价格，是根据运费进行计算的
     **/
    private BigDecimal payPrice;

    /**
     * 运费
     **/
    private BigDecimal fare;
}
